package com.example.cash.craft.pojo.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单明细
 */
@Data
@TableName("order_item")
public class OrderItemVO implements Serializable {

    @Schema(description = "订单项ID")
    private Long id;

    @Schema(description = "订单ID")
    private Long orderId;

    @Schema(description = "商品ID")
    private Long productId;

    @Schema(description = "商品封面图片（历史）")
    private String productCoverImage;

    @Schema(description = "商品标题（历史）")
    private String productTitle;

    @Schema(description = "商品价格（历史）")
    private BigDecimal productPrice;

    @Schema(description = "商品数量")
    private Integer productQuantity;

}